
disableSerialization;

_n = _this select 0;       
 
console_valid_music = lbCurSel 10605;

//hint format["%1",console_valid_music];


if (_n == 0) then
{
  if (vts_launchmusic==1) then
  {
  //hint format["%1",console_valid_music];
  if (console_valid_music > 0) then 
  {
  Musicvalid=lbData [10605, console_valid_music];
  publicvariable "Musicvalid";
  hint format["Now playing : %1",lbText[10605,console_valid_music]];
  };
 
  if (console_valid_music == 1) then {playmusic [format["%1",Musicvalid],0]; 0 fademusic 0; 3 fademusic 1;hint "Music stop : only on GM";};
  if (console_valid_music > 1) then {playmusic [format["%1",Musicvalid],0]; 0 fademusic 0; 3 fademusic 1;hint format["Now playing : %1 only on GM",Musicvalid];};
 
  //user1 sidechat "launch";
  
  }
  else
  {
  vts_launchmusic=vts_launchmusic-1;
  if (vts_launchmusic<1) then {vts_launchmusic=1};
  //user1 sidechat "dontlaunch";
  //user1 sidechat format["%1",vts_launchmusic];
  };
  

}
else
{
  //Musiques Maestro !!!
  _MydualList2=
      [
        ["Play music",""],
        ["Stop music",""]
      ];
  //if (ARMA2CO) then 
  //{
  _MydualList2=_MydualList2+GlobalMusicList;
 
  
  [10605, _MydualList2] call Dlg_FillListBoxLists;

  
  vts_launchmusic=3;
  lbSetCurSel [10605,Musicsave];
  
};


